// Author: Ivan Kazmenko (gassa@mail.ru)
// Validator for problem "oasis"
module validate;
import std.exception;
import testlib;

immutable int minN =   1;
immutable int maxN = 100;
immutable int maxD = 100;

void main (string [] args)
{
	initTestlib !(TestlibRole.validator) (args);

	auto n = inFile.read !(int) (minN, maxN);
	inFile.skip ("\n");
	int prev = 0;
	foreach (i; 0..n)
	{
		auto val = inFile.read !(int) (prev + 1, maxD);
		prev = val;
		inFile.skip (i + 1 < n ? " " : "\n");
	}

	inFile.checkEof ();
}
